package com.crm.service.sys.permissionManagement;

import com.crm.model.entity.sys.permissionManagement.SysMenuPermission;

import java.util.List;

/**
 * @Author yincuimei
 * @Date 2020/12/4 15:24
 */
public interface SysMenuPermissionDbService {

    /**
     * 新增一条菜单-权限组关联数据
     * @param sysMenuPermission ---(菜单-权限组信息)
     * @return
     */
    Boolean insertSysMenuPermission(SysMenuPermission sysMenuPermission);

    /**
     * 批量添加菜单-权限组关联数据
     * @param sysMenuPermissionList
     * @return
     */
    Boolean insertSysMenuPermissionBatch(List<SysMenuPermission> sysMenuPermissionList);

    /**
     * 根据权限组ID删除菜单-权限组关联
     * @param permissionGroupId
     * @return
     */
    Boolean deleteSysMenuPermissionByPGId(String permissionGroupId);


    /**
     * 根据权限组ID查询菜单-权限组关联表主键
     * @param permissionGroupId
     * @return
     */
    List<String> selectMenuPermissionIdList(String permissionGroupId);

    /**
     * 根据权限组ID查询菜单-权限组关联表
     * @param permissionGroupId
     * @return
     */
    List<SysMenuPermission> selectSysMenuPermissionList(String permissionGroupId);
}
